package com.wty.basic.duotai;

/**
 * @Author wangtengyu
 * @Create 2018-08-08-10:48
 */
public class Test {


    @org.junit.Test
    public void test1(){
        Fu fu=new Zi();
        System.out.println(fu.name);
        System.out.println(fu.school);
        fu.staticMethod();
        fu.testMethod();
        fu.testMethod2();

        System.out.println(fu instanceof Zi);
        if(fu instanceof Zi){
            fu=(Zi)fu;
            ((Zi) fu).testMethod3();
        }
    }
}
